Retrieves an array of the values of the constants in a specified enumeration.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Function GetValues() As IList(Of T) |
Visual Basic (Usage) | Copy Code |
---|
Dim value As IList(Of T)
value = Enum(Of T).GetValues()
|
C# | |
---|
public static IList<T> GetValues() |
Managed Extensions for C++ | |
---|
public: static IList<T>* GetValues(); |
C++/CLI | |
---|
public:
static IList<T>^ GetValues(); |
Return Value
The array of values.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also